<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格</title>
    <style>
        table{
            width: 500px;
            height: 200px;
        }
        table.box1,th,td{
            /* 表格边框 */
            border: 1px solid green;
            /* 折叠边框 */
            border-collapse: collapse;
            /* 文本水平排列 */
            /* text-align: center; */
            /* 文本垂直排列 top/bottom */
            vertical-align:center;

        }
    </style>
</head>

<body>
    <!-- border 表格边框 -->
    <table class="box1">
        <tr>
            <th>姓名</th>
            <th>地址</th>
        </tr>
        <tr>
            <td>tom</td>
            <td>深圳</td>
        </tr>
        <tr>
            <td>jack</td>
            <td>长沙</td>
        </tr>
    </table>

</body>

</html>